]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: Remove bogus parameter
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 4 Feb 2019 10:58:00 +0000 (11:58 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 5 Feb 2019 02:21:40 +0000 (02:21 +0000)
Expecting a callback argument over D-Bus doesn't make any sense at
all, whoops.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/388

js/ui/screenshot.js

index f0e1c4825b41c4857f85c21943ba04870027102c..a314dfceae780b659f806e043cca51ac70ba1704 100644 (file)
@@ -106,7 +106,7 @@ var ScreenshotService = class {
     }
 
     ScreenshotAreaAsync(params, invocation) {
-        let [x, y, width, height, flash, filename, callback] = params;
+        let [x, y, width, height, flash, filename] = params;
         [x, y, width, height] = this._scaleArea(x, y, width, height);
         if (!this._checkArea(x, y, width, height)) {
             invocation.return_error_literal(Gio.IOErrorEnum,